import Vue from 'vue'
import App from './App.vue'
import router from './router/'
import store from '@/store'

import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.less'
import IconBtn from './components/IconBtn'
import timeFilters from "@/core/time";


Vue.use(Antd)
Vue.component(IconBtn.name, IconBtn)
Vue.config.productionTip = true

for (let pair of Object.entries(timeFilters)) {
  Vue.filter(pair[0], pair[1])
}

// 注册全局消息提示
Vue.prototype.$message.config({
  duration: 2,
  top: '80px',
})
// Vue.prototype.$error = (s) => Vue.prototype.$message.error(s)
// Vue.prototype.$info = (s) => Vue.prototype.$message.info(s)
// Vue.prototype.$success = (s) => Vue.prototype.$message.success(s)
// Vue.prototype.$warning = (s) => Vue.prototype.$message.warning(s)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
